package com.init.iblog.domain.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * 评论视图类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CommentVo {
    private Long id;



    //文章id
    private Long blogId;
    //根评论id(该评论为根评论，则为-1)
    private Long rootId;
    //评论内容
    private String content;
    //所回复的目标评论的userid
    private Long toCommentUserId;
    //对应的toCommentUserId的用户名
    private String toCommentUserName;
    //回复目标评论id
    private Long toCommentId;
    //评论者id
    private Long createBy;
    //评论者头像
    private String avatar;
    //创建评论时间
    private Date createTime;
    //评论者昵称
    private String username;
    //子评论
    private List<CommentVo> children;
}
